package indi.gao.springAopTest.controller;

import indi.gao.springAopTest.service.ListAllBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c)2020$</p>
 * <p>Company: Tope</p>
 * <P>Created Date :2020$-05$-18$</P>
 * <P>@version 1.0</P>
 */
@RestController
public class ListAllBookController {

    @Autowired
    ListAllBookService listAllBook;

    @RequestMapping(value = "/test/{all}")
    public List<String> listAllBook(@PathVariable Boolean all) {
        return listAllBook.listAllBook(all);
    }
}
